<include file="public/header"/>

<body>

<!--main-->
<div class="xgLogin-main">
  <div class="xgLogin-logo">
    <img src="__PUBLIC__/home/images/logo.png">
  </div>
  <form id="login">
  <ul class="xgLogin-filed">
    <li>
      <label>手机号</label>
      <input type="text" class="inpt" placeholder="请输入您的手机号" name="phone" >
      <!--<span class="mark iconfont">&#xe77e;</span> -->
    </li>
    <li>
      <label>密码</label>
      <input type="password" class="inpt" placeholder="请输入您的密码" name="password" >
      <input type="hidden" name="type" value="{$type}">
      <!--<span class="mark iconfont">&#xe77e;</span> -->
    </li>
    <li> <a href="{:U('User/forget')}" class="forget">忘记密码？</a> </li>
  </ul>
  </form>
  <div class="xgLogin-submit">
    <a href="javascript:;" class="btn" onClick="login()">登录</a>
    <div class="no-account">
      没有账号？<a href="{:U('User/register')}" class="c-green">立即注册</a>
    </div>
    <p>其他登陆方式</p>
    <div class="other">
      <a href="{:U('User/wx_login',array('type' => $type))}"><img src="__PUBLIC__/home/images/other-weix.png"></a><!-- <a href="#"><img src="__PUBLIC__/home/images/other-phone.png"></a>-->
    </div>
  </div>
</div>
<!--main End-->
<script>
  function login() {
      ajax_submit('login', "{:U('Home/User/login')}");
  }
</script>

</body>
</html>
